package com.piggy.logi.sys.controller;

import com.piggy.common.core.domain.R;
import com.piggy.common.core.utils.poi.ExcelUtil;
import com.piggy.common.core.web.controller.BaseController;
import com.piggy.common.core.web.page.TableDataInfo;
import com.piggy.common.log.annotation.Log;
import com.piggy.common.log.enums.BusinessType;
import com.piggy.logi.sys.api.bo.LogiDeptLineEditBo;
import com.piggy.logi.sys.api.vo.LogiDeptLineExtVo;
import com.piggy.logi.sys.bo.LogiAccountLogQueryBo;
import com.piggy.logi.sys.bo.LogiDeptLineQueryBo;
import com.piggy.logi.sys.domain.LogiAccountLog;
import com.piggy.logi.sys.service.ILogiAccountLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;

/**
 * 账号变动日志controller
 */
@Api(value = "账号变动日志控制器", tags = {"账号变动日志"})
@RequiredArgsConstructor
@RestController
@RequestMapping("/sys/accountLog")
public class LogiAccountLogController extends BaseController {

    private final ILogiAccountLogService iLogiAccountLogService;

    /**
     * 查询账号变动日志
     */
    @ApiOperation("查询账号变动日志")
    //@SaCheckPermission("sys:accountLog:list")
    @PostMapping("/list")
    public TableDataInfo<LogiAccountLog> list(@Validated @RequestBody LogiAccountLogQueryBo bo) {
        return iLogiAccountLogService.queryPageList(bo);
    }
}
